
import request from '@/utils/request';
//删除部门--修改部门状态
export function deleteVideoDept(deptCode) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      `/common/zfVideo/deleteVideoDept/${id}`,
    method: "post"
  });
}

//添加部门addDepartment
export function addDepartment(departid,departname,parentdepartid,ordervalue) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      '/common/zfVideo/addDepartment?departid='+departid+'&departname='+departname+'&parentdepartid='+parentdepartid+'&ordervalue='+ordervalue,
    method: "post"
  });
}


//添加用户addUser
export function addUser(userid, username,  mobile,  departid,  departname){
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      '/common/zfVideo/addUser?userid='+userid+'&username='+username+'&mobile='+mobile+'&departid='+departid+'&departname='+departname,
    method: "post"
  });
}
//检查用户是否存在
export function checkUser(userid, username,  mobile,  departid,  departname){
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      '/common/zfVideo/checkUser?userid='+userid+'&username='+username+'&mobile='+mobile+'&departid='+departid+'&departname='+departname,
    method: "post"
  });
}


//删除用户
export function removeUser(name) {
  return request({
    url:
      process.env.VUE_APP_KSTB_ROUTE_PATH +
      '/common/zfVideo/removeUser?name='+name,
    method: "post"
  });
}

